<%--
 *  File:    DealerPurchaseData.jsp
 *  @Author: TerryCui 
 *  Date:    2011/1/12
 *
 *  Copyright (C) 2000 - 2010 Oval Technologies, Inc.
 *  All rights reserved. 
 *
 *  This software is the confidential and proprietary information of Oval 
 *  Technologies, Inc. ("Confidential Information").  You shall not
 *  disclose such Confidential Information and shall use it only in
 *  accordance with the terms of the license agreement you entered into
 *  with Oval.
--%>

<%@ page language="java"%>
<%@ page import="java.util.*"%>
<%@ page import="org.apache.log4j.Category"%>

<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="/WEB-INF/PageFlow.tld" prefix="PageFlow"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/oval-tag.tld" prefix="oval"%>
<%@ taglib uri="/WEB-INF/custom.tld" prefix="custom"%>
<%
  //init param
  String strModuleName = "AL";
  String privilegeCode = "10901,10902,10903";
  String contextPath = request.getContextPath();
%>

<html>
<head>
<title>DealerPurchaseData</title>
<PageFlow:CheckPageFlow pageName="p_dealerpurchasedata"/>
<%
	Vector purchaseData = (Vector)pageContext.getAttribute("purchasedata");
	if(purchaseData == null){
		purchaseData = new Vector();
	}
%>
<%@include file="/inc/PageDefault.inc"%>
<%@include file="/inc/FrmDefault.inc"%>
<link rel="stylesheet" href="<%=contextPath%>/css/<%= strLanguageCode %>/main.css" type="text/css">
</head>

<body style="overflow: auto;">
<form name="cform" id="cform" method="post"	action="<%=contextPath%>/Dispatcher">
<table width="100%" cellspacing="0" border="0" cellpadding="0">
	<tr>
		<td>
			<table width="100%" border="1" cellpadding="0" bordercolorlight="#999999" bordercolordark="#FFFFFF" cellspacing="0" align="center">
				<tr class="deepblue-left"> 
					<td class="title_center"><%= label.getLabelName("L_VendorCode")%></td>
					<td class="title_center"><%= label.getLabelName("L_VendorName")%></td>
					<td class="title_center"><%= label.getLabelName("L_PurchaseDate")%></td>
					<td class="title_center"><%= label.getLabelName("L_ProdName")%></td>
					<td class="title_center"><%= label.getLabelName("L_Spec")%></td>
					<td class="title_center"><%= label.getLabelName("L_Qty")%></td>
					<td class="title_center"><%= label.getLabelName("L_UMName")%></td>
					<td class="title_center"><%= label.getLabelName("L_FileName")%></td>
				</tr>
				<%
					int i = 0;
					String strClassType = new String();
				%>
				<logic:iterate id="onerow" collection="<%= purchaseData %>" >          
					<%
						if(i%2 == 1){
							strClassType = "td-listrom";
						}else{
							strClassType = "";
						}
						i++;
					%>      
					<tr onMouseOver="this.className='tr-over'" onMouseOut="this.className='<%=JspHelper.filterNull( strClassType )%>'"  class="none">
						<td class="title_center"><custom:write name="onerow" property="partnercode" nbsp="true" /></td>
						<td class="title_center"><custom:write name="onerow" property="partnername"  nbsp="true"/></td>
						<td class="title_center"><custom:write name="onerow" property="purchasedate"  nbsp="true"/></td>
						<td class="title_center"><custom:write name="onerow" property="prdn"  nbsp="true"/></td>
						<td class="title_center"><custom:write name="onerow" property="itemspec"  nbsp="true"/></td>
						<td class="title_center"><custom:write name="onerow" property="qty"  nbsp="true"/></td>
						<td class="title_center"><custom:write name="onerow" property="umname"  nbsp="true"/></td>
						<td class="title_center"><custom:write name="onerow" property="filename"  nbsp="true"/></td>
					</tr>
				</logic:iterate>
			</table>
		</td>
	</tr>
</table>
</form>
</body>
</html>